﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucBillCustomer.ascx.cs"
    Inherits="Billing2.ucBillCustomer" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Controls/ucHighlight.ascx" TagName="ucHighlight" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ucInProgress.ascx" TagName="ucInProgress" TagPrefix="uc3" %>
<asp:UpdatePanel runat="server" ID="updatePanel3">
    <ContentTemplate>
        <uc1:ucHighlight ID="ucHighlight1" runat="server" />
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="BtnSave" EventName="Click" />
    </Triggers>
</asp:UpdatePanel>
<asp:Panel ID="PanelDetails" runat="server">
    <table>
        <tr>
            <td>
                Customer No
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtCustNo" runat="server" Width="200px" MaxLength="50"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Short Name
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtCustName1" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Customer Name
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtCustName2" runat="server" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Business Unit
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtBUCode" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Address
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtAddress" runat="server" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Contact Person
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtContactPerson" runat="server" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Special Instruction
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtSpecialInstruction" runat="server" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Telephone No
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtTelNo" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Fax No
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtFaxNo" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Email Address
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtEmailTo" runat="server" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Remarks
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtRemarks" runat="server" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Group By
            </td>
            <td colspan="2">
                <asp:DropDownList ID="ddlGroupBy" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlGroupBy_SelectedIndexChanged">
                    <asp:ListItem Selected="True" Value="Site">Site</asp:ListItem>
                    <asp:ListItem Value="CostCentre">CostCentre</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                Organization
            </td>
            <td colspan="2">
                <asp:DropDownList ID="ddlOrganization" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlOrganization_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                Site
            </td>
            <td>
                <asp:DropDownList ID="ddlSite" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlSite_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td style="text-align: center">
                <asp:Label ID="lblCostCentreAvail" runat="server" Text="Available Cost Centres" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblCostCentre" runat="server" Text="Cost Centre(s)" Visible="false"></asp:Label>
            </td>
            <td>
                <asp:ListBox ID="lstboxCostCentre" runat="server" Rows="10" SelectionMode="Multiple"
                    Width="220px" Visible="False"></asp:ListBox>
            </td>
            <td style="text-align: center">
                <asp:ListBox ID="lstboxCostCentreAvail" runat="server" Rows="10" SelectionMode="Multiple"
                    Style="text-align: center" Width="220px" Visible="False"></asp:ListBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnRemoveListItem" runat="server" OnClick="btnRemoveListItem_Click"
                    Text="Remove" Visible="False" />
                <asp:Button ID="btnAddCostCentre" runat="server" OnClick="btnAddCostCentre_Click"
                    Text="&lt;" ToolTip="Add Cost Centre from available list" Visible="False" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="xPrimaryKey" runat="server" Value="0" />
    <asp:HiddenField ID="xDialogID" runat="server" Value="" />
    <asp:UpdatePanel ID="ActionPanel" runat="server">
        <ContentTemplate>
            <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click"
                Text="Save" />
            <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click"
                Text="Delete" />
            <asp:ConfirmButtonExtender ID="btnDelete_ConfirmButtonExtender" runat="server" TargetControlID="btnDelete"
                ConfirmText="Are you sure want to delete?">
            </asp:ConfirmButtonExtender>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:Timer ID="TimerCloseIt" runat="server" Enabled="False" Interval="1000" OnTick="TimerCloseIt_Tick">
    </asp:Timer>
    <asp:UpdateProgress ID="updateprogress1" runat="server" AssociatedUpdatePanelID="ActionPanel">
        <ProgressTemplate>
            <uc3:ucInProgress ID="ucInProgress1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Panel>
